package com.siwei.mes.enums;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;

/**
 * @Description: 频次枚举
 * @Version: 1.0
 * @author: chenmaolin
 * @date: 2024/1/1 13:57
 */
@Getter
public enum FreqUnitEnum {
    SECOND("s", "秒"),
    MINUTE("m", "分"),
    HOUR("h", "时"),
    DAY("d", "天"),
    WEEK("w", "周"),
    MONTH("m", "月"),
    ;
    @ApiModelProperty(value = "频次代码")
    private final String code;

    @ApiModelProperty(value = "频次描述")
    private final String name;

    FreqUnitEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }
}
